﻿<%@ Page Theme="BlueSkin"  Title="نظام التدريب الالكتروني : فهرس الدورات" Language="C#" MasterPageFile="~/LmsWebSite/MasterAR.master" AutoEventWireup="true" CodeFile="CatalogPageAR.aspx.cs" Inherits="CatalogPageAR" %>














<%@ Register src="FoldersControlAR.ascx" tagname="FoldersControlAR" tagprefix="uc1" %>














<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    
    
   <style type="text/css">
        .noheight
        {
            font-size:1px;
            height:1px;
            
        }
        
        .width10px
        {
            width:10px;
        }
    
    </style> 
    
   


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
        
        
        
<table cellspacing="5" cellpadding="5" width="100%" class="direction" >
        <tr>
            <td align="right" class="heading">
                <div class="floating">
               فهرس الدورات
               </div>

               
                <div class="clearing"></div>

            </td>
        </tr>

        <tr>
                        <td class="aligning">
                           

                            
                                            <p style="text-align:justify;margin-right:5px;margin-left:5px;">
                                                بإمكانك استعراض الدورات من خلال هذه الصفحة (الفهرس) و التسجيل ذاتياً بالدورات التي تختارها.
                                            </p>

                                            <div class="clearing" style="height:5px;"></div>

                                            <div class="unfloating aligning direction">
                                                <a href='HelpVideo/CatalogPageAR.swf' target="_blank" class="linktext">
                                                <asp:Label ID="lblVideo" runat="server" Font-Size="16px" >
                                                فيديو مساعد (البحث والتسجيل في دورة)
                                                </asp:Label>
                                                </a>
                                            </div>

                                            <div class="clearing"></div>

                        </td>
                  </tr>


    </table>
    <div class="clearing" style="width:1px;height:10px;font-size:1px;"></div>
    
    <div class="aligning allWidthWithMargins direction" style="margin-bottom:10px;margin-left:30px;margin-right:30px;">
       
       <%--<div class="floating" style="font-size:1px;width:30px;height:1px;"></div>--%>
        <div class="floating direction aligning" style="width:300px;">
            <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox>
           
        </div>
        <div class="floating" style="font-size:1px;width:11px;height:1px;"></div>
        <div class="floating direction aligning" style="width:100px;">
            <asp:Button ID="btnSearch" runat="server" Text="بحث" 
                onclick="btnSearch_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
        
        </div>
            

        <div class="clearing" style="width:1px;height:10px;"></div>


         <div class="allWidthWithMargins" runat="server" id="dvShowLanguage">
             <div class="floating">
                    <asp:Label ID="lblLangaugeHead" runat="server" Text="لغة الدورة"></asp:Label>    
             </div>
             
             <div class="floating noheight width10px"></div>           
            
            
            <div class="floating">
                <asp:DropDownList ID="ddlLanguage" runat="server" Width="245px" AutoPostBack="true" OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
                </asp:DropDownList>
            </div>

            <div class="clearing" style="width:1px;height:10px;"></div>
        </div>

       
       <div class="clearing"></div>

       <div class="floating aligning direction" style="width:200px;">
            <%--<asp:Label ID="lblCurrentFolderDesc" runat="server" Text="Select folder : "></asp:Label>--%>
        </div>
        
        
       
       <uc1:FoldersControlAR ID="fcSelectFolder" runat="server" OnSelectedItemChanged="fcSelectFolder_SelectedItemChanged"   />
       
       
       
       <div class="clearing" style="width:1px;height:10px;"></div>       
        
       
       
            
        <asp:GridView DataKeyNames="ID" ID="grdUsers" runat="server" 
                AutoGenerateColumns="False" AllowPaging="True" 
                 Font-Size="12px" 
                onpageindexchanging="grdUsers_PageIndexChanging" 
             onrowdatabound="grdUsers_RowDataBound" Width="840px" 
            EnableModelValidation="True" OnRowCommand="grdUsers_RowCommand">
                <HeaderStyle HorizontalAlign="Center"/>
                
                <RowStyle HorizontalAlign="Center" />

                <EmptyDataTemplate>
                <div class="aligning floating direction" style="width:840px;">
                    <asp:Label ID="Label2" runat="server" Text="Label" >لا توجد دورات</asp:Label> 
                    <br />
                    <br />
                    
                </div>
                    
                </EmptyDataTemplate>
                <Columns>
                    
                    
                    <asp:TemplateField ItemStyle-CssClass="gridRowStyle" HeaderStyle-CssClass="gridRowStyle" >
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkCourseName" runat="server" CommandName="orderCourseNameAR" ForeColor="White" Text="اسم الدورة"></asp:LinkButton>
                            <%--<asp:Label ID="lblCourseNameENHead" runat="server" Text="اسم الدورة" Width="120px"></asp:Label>--%>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <a href='<%# "./RegisterCourseAR.aspx?ID=" + Eval("ID") %>' target="_blank"><asp:Label ID="lblCourseNameENItem" runat="server" Text='<%#  Eval ("CourseNameAR") %>'></asp:Label></a>
                                                     
                        </ItemTemplate>
                        <HeaderStyle CssClass="gridRowStyle" />
                        <ItemStyle CssClass="gridRowStyle" />
                    </asp:TemplateField>


                    <asp:TemplateField>
                        <HeaderTemplate>
                        <asp:LinkButton ID="lnkstrFolderNameAR" runat="server" CommandName="orderstrFolderNameAR" ForeColor="White" Text="نوع الدورة"></asp:LinkButton>
                            <%--<asp:Label ID="lblFolderName" runat="server" Text="نوع الدورة" Width="120px"></asp:Label>--%>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                           <asp:Label ID="lblFolderName" runat="server" Text='<%# ((DatabaseComponent.Courses)(Container.DataItem)).objFolder.objMostParent.FolderNameAR %>' Width="120px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                    
                   
                    
                    
                     <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkDuration" runat="server" CommandName="orderDuration" ForeColor="White" Text="مدة الدورة (HH:MM:SS)"></asp:LinkButton>
                            <%--<asp:Label ID="lblDurationHead" runat="server" Text="مدة الدورة (HH:MM:SS)" Width="80px"></asp:Label>--%>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblDurationItem" runat="server" Text='<%#  GlobalVars.setSecounds ((long?)Eval ("Duration")) %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                    
                    
                   <asp:TemplateField >
                        <HeaderTemplate>
                            <asp:LinkButton ID="lnkstrLanguageNameAR" runat="server" CommandName="orderstrLanguageNameAR" ForeColor="White" Text="لغة الدورة"></asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                            <asp:Label ID="lblLanguageName" runat="server" Text='<%# Eval("objLanguages.LanguageNameAR")%>'></asp:Label>

                        </ItemTemplate>
                    
                    </asp:TemplateField>
                    
                    
                    
                    <asp:TemplateField>
                        <HeaderTemplate>
                                <asp:Label ID="lblRegisterationHead" runat="server" Text="التسجيل" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           
                                                              
                                 <asp:Panel ID="registerPanel" runat="server" ></asp:Panel>
                                  
                                                 
                        </ItemTemplate>
                        
                        
                    </asp:TemplateField>
                    
                    
                    
                    
                    
                        
                           
                        
               
                
                
                
                </Columns>
                
                
            </asp:GridView>



        
        
        <div class="clearing" style="margin-bottom:200px;">
            
        </div>
       
       
       
       
    </div>
    
    
    
    
         

                
               


    <div class="clearing" style="height:5px;"></div>
    
    
        </ContentTemplate>
        </asp:UpdatePanel>


</asp:Content>

